

<!-- 模态框（Modal） -->
<div class="modal fade" id="editmodel_{{$v->id}}" tabindex="-1" role="dialog" aria-labelledby="editModalLabel_{{$v->id}}" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h5 class="modal-title" id="editModalLabel_{{$v->id}}">编辑任务</h5>
            </div>
            {!!Form::model($v,['route'=>['task.update',$v->id],'method'=>'PATCH'])!!}
            <div class="modal-body">
                <div class="form-group">
                    {!!Form::label('title','任务名称',['class'=>'control-label'])!!}
                    {!!Form::text('title',null,['class'=>'form-control'])!!}
                </div>
                <div class="form-group">
                    {!!Form::label('projectss','所属项目',['class'=>'control-label'])!!}
                    {!!Form::select('projectss',$projectss,null,['class'=>'form-control'])!!}
                </div>
            </div>
            @if($errors->has('title'))<!-- //有任何错误 -->
            <ul class="alert alert-danger"><!-- //bootstrap样式 -->
            @foreach($errors->get('title') as $error)<!-- //获取所有错误并循环 -->
            <li>{{$error}}</li>
            @endforeach
            </ul>
            @endif
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                {!! Form::submit('提交更改',['class'=>'btn btn-primary']) !!}
            </div>
            {!! Form::close() !!}

        </div><!-- /.modal-content -->
    </div><!-- /.modal -->

</div>